package com.example.evaluate.model;

import com.alibaba.fastjson.JSON;
import lombok.*;

/**
 * 问题类
 * 抽象调查表的属性
 * */
@Setter
@Getter
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public class Question {
    private Integer questionId;
    private Integer question1;
    private Integer question2;
    private Integer question3;
    private Integer question4;
    private Integer question5;
    private Integer question6;
    private Integer question7;
    private Integer question8;
    private Integer question9;
    private Integer question10;
    private String questionAdvice;

    public Question(Integer question1, Integer question2, Integer question3, Integer question4, Integer question5, Integer question6, Integer question7, Integer question8, Integer question9, Integer question10, String questionAdvice) {
        this.question1 = question1;
        this.question2 = question2;
        this.question3 = question3;
        this.question4 = question4;
        this.question5 = question5;
        this.question6 = question6;
        this.question7 = question7;
        this.question8 = question8;
        this.question9 = question9;
        this.question10 = question10;
        this.questionAdvice = questionAdvice;
    }

    //    private Integer questionId;//问题id
//    private String questionContent;//问题内容
//    private Integer[] questionGrade;// 问题等级
//
//    /**
//     * 部分参数构造方法
//     * */
//    public Question(String questionContent, Integer[] questionGrade) {
//        this.questionContent = questionContent;
//        this.questionGrade = questionGrade;
//    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
